package pe.com.cineplanet.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;
import org.springframework.web.servlet.mvc.multiaction.ParameterMethodNameResolver;

public class EstaticaController  extends MultiActionController {

	public EstaticaController()
    {
        ParameterMethodNameResolver resolver = new ParameterMethodNameResolver();
        resolver.setParamName("method");
        resolver.setDefaultMethodName("view");
        setMethodNameResolver(resolver);
    }
	
	
	public ModelAndView vision(HttpServletRequest request, HttpServletResponse response)
    throws Exception {
		return new ModelAndView("estatica/vision");
    } 
	
	public ModelAndView historia(HttpServletRequest request, HttpServletResponse response)
    throws Exception {
		return new ModelAndView("estatica/historia");
    } 
}

